package com.edu.tool.bean.sms;

import com.baomidou.mybatisplus.annotation.TableName;
import com.edu.tool.bean.BaseBean;

import java.util.Date;

@TableName("s_sms")
public class SysSms extends BaseBean {


    private String batchNo;

    private String srcId;

    private String smsChannel;

    private String phone;

    private String msgContent;

    private Date submitTime;

    private String submitStat;
    private String deliverStat;
    private String msgId;




    private static final long serialVersionUID = 1L;

    public SysSms(
                   Integer tenantId,
                   String batchNo,
                   String srcId,
                   String smsChannel,
                   String phone,
                   String msgContent,
                   Date submitTime,
                   String submitStat,
                   String msgId
 )
    {
        this.tenantId = tenantId;
        this.batchNo  = batchNo;
        this.srcId    = srcId;
        this.smsChannel = smsChannel;
        this.phone = phone;
        this.msgContent = msgContent;
        this.submitTime = submitTime;
        this.submitStat = submitStat;
        this.msgId = msgId;

    }

    public SysSms() {
        super();
    }

    public String getBatchNo() {
        return batchNo;
    }

    public void setBatchNo(String batchNo) {
        this.batchNo = batchNo == null ? null : batchNo.trim();
    }

    public String getSrcId() {
        return srcId;
    }

    public void setSrcId(String srcId) {
        this.srcId = srcId == null ? null : srcId.trim();
    }

    public String getSmsChannel() {
        return smsChannel;
    }

    public void setSmsChannel(String smsChannel) {
        this.smsChannel = smsChannel == null ? null : smsChannel.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getMsgContent() {
        return msgContent;
    }

    public void setMsgContent(String msgContent) {
        this.msgContent = msgContent == null ? null : msgContent.trim();
    }

    public Date getSubmitTime() {
        return submitTime;
    }

    public void setSubmitTime(Date submitTime) {
        this.submitTime = submitTime;
    }

    public String getSubmitStat() {
        return submitStat;
    }

    public void setSubmitStat(String submitStat) {
        this.submitStat = submitStat == null ? null : submitStat.trim();
    }

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId == null ? null : msgId.trim();
    }

    public String getDeliverStat() {
        return deliverStat;
    }

    public void setDeliverStat(String deliverStat) {
        this.deliverStat = deliverStat;
    }

    @Override
    public String toString() {
        return "SysSms{" +
                ", tenantId=" + tenantId +
                ", batchNo='" + batchNo + '\'' +
                ", srcId='" + srcId + '\'' +
                ", smsChannel='" + smsChannel + '\'' +
                ", phone='" + phone + '\'' +
                ", msgContent='" + msgContent + '\'' +
                ", submitTime=" + submitTime +
                ", submitStat='" + submitStat + '\'' +
                ", msgId='" + msgId + '\'' +
                '}';
    }

    public boolean isSendSuccess()
    {
    	return "suc".equals(this.submitStat);
    }
}